import request from '@/utils/request'

// 查询技师收益列表
export function listEarnings(query) {
  return request({
    url: '/system/technician/earnings/list',
    method: 'get',
    params: query
  })
}

// 查询技师收益详细
export function getEarnings(query) {
  return request({
    url: '/system/technician/earnings/collect/list',
    method: 'get',
    params: query
  })
}
export function gettechnician(query) {
  return request({
    url: '/system/technician/earnings/collect/technicianEarningList',
    method: 'get',
    params: query
  })
}
// 新增技师收益
export function addEarnings(data) {
  return request({
    url: '/system/earnings',
    method: 'post',
    data: data
  })
}

// 修改技师收益
export function updateEarnings(data) {
  return request({
    url: '/system/earnings',
    method: 'put',
    data: data
  })
}

// 删除技师收益
export function delEarnings(id) {
  return request({
    url: '/system/technician/earnings/' + id,
    method: 'delete'
  })
}
